import { DIC_ANT } from '@/util/DIC_ANT'
import { DicUrl } from '@/views/system/dic/dicApi'
import i18n from '@/lang' // Internationalization


export default {
    // maxHeight: 400,
    index: true,
    border: true,
    expand: false,
    excelBtn:true,
    // title:i18n.t("system.user.title"),//表格的标题
    title:i18n.t("ant.AntBox.title"),//表格的标题
    menuWidth:130,
    stripe: false,
    selection: true,
    // customClass: '',自定义弹出框样式
    menuBtn: true,
    // menuWidth: 100,
    menuAlign: 'center',
    align: 'center',
    searchSize: 'small',
    menuType: 'menu',
    // defaultSort: {
    //   prop: 'name',
    //   order: 'descending'
    // },
    dicData: DIC_ANT,
    column: [
    {
        label: i18n.t("ant.AntBox.code"),
        prop: "code",
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntBox.code"), trigger: "blur" },
        ],
    },
    {
        label: i18n.t("ant.AntBox.netStatus"),
        prop: "netStatus",
        type: 'select',
        valueDefault: 1,
        dicData: DIC_ANT.ANT_NET_STATUS,
        search: true,
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntBox.netStatus"), trigger: "blur" },
        ],
    },
    {
        label: i18n.t("ant.AntBox.eleStatus"),
        prop: "eleStatus",
        type: 'select',
        valueDefault: 1,
        dicData: DIC_ANT.ANT_ELE_STATUS,
        search: true,
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntBox.eleStatus"), trigger: "blur" },
        ],
    },
    {
        label: i18n.t("ant.AntBox.isOpen"),
        prop: "isOpen",
        type: 'select',
        valueDefault: 1,
        dicData: DIC_ANT.ANT_IS_OPEN,
        search: true,
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntBox.isOpen"), trigger: "blur" },
        ],
    },
    {
        label: i18n.t("ant.AntBox.isForbidden"),
        prop: "isForbidden",
        type: 'select',
        valueDefault: 1,
        dicData: DIC_ANT.ANT_IS_FORBIDDEN,
        search: true,
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntBox.isForbidden"), trigger: "blur" },
        ],
    },
    {
        label: i18n.t("ant.AntBox.address"),
        prop: "address",
        width: 120,
        rules: [
            { required: true, message: i18n.t("${commHandle.tipInput}") + i18n.t("ant.AntBox.address"), trigger: "blur" },
        ],
    },
    ]
};